Writing test for previous entry, moving logic from story controller to story model