added tests for base cases