add testing for presentation layer