Test code ' F# Factory Pattern'