Managed to get gulp test to behave properly