wrote better tests for the interceptor
created more tests for check schema