Fix $view reference in layout test

 * Delete composer.lock and add to .gitignore file