Adds test for displaying error message when choosing a taken location and code that passes the test