compiles and tests selected solution