Added simple tests for time limit and memory limit.