moved deploy into bin
added test