added tests for core calculations