Added warning flags
Fixed run paths for test problems and added more tests