Fixed invalid if statement

Added test as post build step