added test for public method index and new
added a test for a failing create method