added factory for answer and the test for answer