Added tests for problems 18 - 50