refined tests and cleaned up recipe