fixed tests - api contruction
added tests to cover returnType array