Fix build error
Adding test

see #237