Adding basename function
Adding spec test for basename function