fixed build and added test