Fixed tests and added support to linux/darwin/windows different tests