add a test
add test for layout of logged-in and non-logged-in users
use partial to remove the duplication of 'new' and 'edit' template