add unit tests for core mvc