changed throw exception to assert true