Migrate some erb files to slim. Adding testcases