added tests for the base functions