move unit tests outside babel package