Implements test cases