Refactor tests, fix retrieving sound id for a sound that has not been loaded