More unit tests for resource limit stuff