making tests nose compatible