fix space and added invalid instance to be tested