Bad way to do unit testing