modify expect method in spec