Fix tests
Use project object extracted by before filter
Don't use WP because it does not exist for index
Fix specs